<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<table>
<%! int i=0; %>
<c:forEach items="${model.detail }" var ="d">
<%if (i==0) {%>
<tr>
<% }%>
<td style="width:265px;"><table><tr>
<td><a href="showdetail.htm?detailid=${d.id }"><img src="resultpre_${d.id }.jpg" style="vertical-align:bottom; border:1px; border-color:#CCCCCC;" height="110px" width="160px" /></a></td>
<td style="vertical-align:top; text-align:center; background-image:url(images/back079107.png); width:79px; height:107px; background-repeat:no-repeat; font-family:Arial, Helvetica, sans-serif; font-size:8px; line-height:10px">
<div  style="width:73px; height:101px; overflow:hidden">
<table cellpadding="0" cellspacing="0" style="width:73px; height:101px; overflow:hidden;"><tr><td style="text-align:center; height:50px;"><img src="head_1.jpg" style="vertical-align:bottom; border:none; margin-left:auto; margin-right:auto" width="50px" height="50px" /></td></tr>
<tr><td style="text-align:left; height:10px;">Character:${d.character }</td></tr><tr><td style="text-align:left; height:10px;"> Costume:${d.costume } </td></tr>
<tr><td style="text-align:left; height:10px;">Photographer:${d.photographer }</td></tr><tr><td style="text-align:left; height:20px">Description:<br/> ${d.description }</td></tr></table></div>
</td></tr>
<tr><td colspan="2" style="vertical-align:middle; text-align:center; font-family:Arial, Helvetica, sans-serif; font-size:8px; width:260px;">
<table style="width:260px; width:246px; height:39px; background-image:url(images/back246039.png); background-repeat:no-repeat; margin-left:auto; margin-right:auto;" cellpadding="0" cellspacing="0">
<tr><td style="width:130px; text-align:left;">Nickname:${d.nickname }</td><td style="width:130px; text-align:left">CosplayID:${d.userID }</td></tr>
<tr><td style="text-align:left;">Type:${d.type }</td><td style="text-align:left;">Photoviews:${d.viewed }</td></tr>
<tr><td style="text-align:left;">Upload Date:${d.joined }</td><td style="text-align:left;">Votes:${d.voted}</td></tr></table>
</td></tr></table></td>

<%if (i==1) {%>
</tr>
<% }%>
<%i=1-i; %></c:forEach>
<%if (i==1) {%>
<td></td></tr>
<%} %>
</table>